import NFA.CreateNFA;

import java.util.Scanner;

public class test {
    public static void main(String[] args) throws InterruptedException{
        String Regular_Expression;   //用户定义正则式
        int Regular_Expression_length;  //正则式长度

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入正则表达式：  （操作符：() * |;字符集：a~z A~Z）");
        Regular_Expression=scanner.nextLine();
        Regular_Expression_length=Regular_Expression.length();

        //创建NFA
        CreateNFA nfa=new CreateNFA(Regular_Expression);
        nfa.transfer_NFA(Regular_Expression);


    }
}
